/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/19
 * ***************************************************************************/

Ext.define("sggm.view.UpdateTaskWindow", {
    extend: "Ext.Window",
    alias: "widget.updateTaskWindow",
    title: "修改任务数据",
    width: 300,
    height: 150,
    modal: true,
    layout:"form",
    labelWidth:45,
    plain:true,
    bodyStyle:"padding:5px",
    buttonAlign: "center",
    items: [{
        xtype: "combo",
        name: "type",
        fieldLabel: "设置任务ID",
        store: new Ext.data.ArrayStore({
            fields: ['value','text'],
            data: [
                ['main', '主线任务']
            ]
        }),
        editable: false,
        valueField: "value",
        displayField: "text",
        triggerAction: "all",
        value: "main"
    }, {
        xtype: "textfield",
        name: "value",
        fieldLabel: "目标值"
    }],
    buttons: [{
        text: "修改",
        action: "saveUserTask"
    }]
});